﻿--[[
   @brief    main_web logic for  web_browser
   @author   harleyxwang
   @version  1.0
   @date     2016-01-30
--]]

main_web_desc =
{
    module_name = 'main_web',
    events = 
    {
        {
            c_event = 
            {
                {
                    id = ierd_tgp.login_mgr.LOGIN_ON_LOGIN_SUCCESS,
                    callback = "main_web_control.on_login_success"
                },
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_GET_BOUTIQUE_RESULT,
                    callback = "main_web_control.on_get_boutique_cfg_result"
                },
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_SET_BOUTIQUE_RESULT,
                    callback = "main_web_control.on_set_boutique_cfg_result"
                },
                {
                    id  = ierd_tgp.login_mgr.LOGIN_ON_TGP_ST_RENEWED,
                    callback = "main_web_control.on_tgp_st_renewed"
                },
                {
                    id = ierd_tgp.login_mgr.LOGIN_ON_SHOW_LOGIN,
                    callback = "main_web_control.on_show_login"
                },
            },
            lua_event = 
            {
                {
                    id = main_web_event.SEND_TGP_FRIEND_LIST,
                    callback = "main_web_control.send_friend_list"
                },
                {
                    id = main_web_event.SEND_GC_MARQUEE_INFO,
                    callback = "main_web_control.send_marquee_info"
                },
                {
                    id = main_web_event.TGP_CLOSE,
                    callback = "main_web_control.do_tgp_close"
                }
            },
            reg_service = {
                {
                    id = 'i_service_open_page',
                    callback = "main_web_control.open_page_req"
                },
                {
                    id = 'i_service_pop_page_param',
                    callback = "main_web_control.pop_page_param_req"
                },
                {
                    id = 'i_service_get_client_env',
                    callback = "main_web_control.get_client_env"
                }
            },
            lua_file = "main_web\\control.lua"
        }
    }
};
desc_mgr.add(main_web_desc);
